<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>User</title>
<style>
*{padding: 0;margin: 0;font-size: 16px;line-height: 20px;font-family: arial;}
a, a:visited{text-decoration: none;font-size: 36px;color:#fff;font-weight: normal;}
header{padding: 70px 0 70px 0;background-color: #4A6495}
h1{
  padding-left: 50px;font-size: 36px;color:#fff;font-weight: normal;display: inline}
code{  padding: 2px 4px;font-size: 90%;color: #c7254e;background-color: #f9f2f4;border-radius: 4px;}
.content{width: 1000px;margin: auto}
.wrap{width: 1000px;margin: auto}
.content{margin-top: 80px;}
.list{width: 800px;}
.list .item{position: relative;padding-left: 70px;margin-top: 50px;}
.list .item .step{position: absolute;width: 36px;height: 36px;top:-3px;left:0;border: 5px solid #4A6495;border-radius: 23px;text-align: center;line-height: 36px;}
.list .item h2{font-size: 24px;font-weight: normal;}
.list .item p{line-height: 30px;margin-top: 10px}
</style>
</head>
<body>
  <header>
    <div class="wrap">
      <h1><a href="{{ctx.config('siteUrl')}}user">列表</a></h1>
      <h1><a href="{{ctx.config('siteUrl')}}user/store">新建内容</a></h1>
    </div>
  </header>
  <div class="content">
    <div class="list">


      <form method="post" action="">
        {% if affectedRows %} 数据更新成功{% endif %}
        <div class="item">
          <div class="step">{{info.id}}</div>
          <h2>新增用户信息</h2>
          <p>姓名：<input type="text" name="name" value="{{info.name}}" /></p>
          <p>联系电话：<input type="moblie" name="mobile" value="{{info.mobile}}" /></p>
          <p>奖项：<select name="type">
            <option value="1" {% if info.type==1 %} selected {%endif%}>100元JD券</option>
            <option value="2" {% if info.type==2 %} selected {%endif%}>50元JD券</option>
          </select>
          </p>
          <p>联系地址：<input type="text" name="address" value="{{info.address}}" /></p>
        </div>
        <input name="id" value="{{info.id}}" type="hidden">
        <input type="submit" value="确认修改" />
      </form>
    </div>
  </div>
</body>
<script>
  console.log('{{info.id}}');

</script>
</html>
